package com.joysuch.wwyt.dzhapi.mapper;

import com.joysuch.wwyt.api.base.dto.ApiUserBeanDto;
import com.joysuch.wwyt.dzhapi.bean.ApiBpContractorStaffBean;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author JamesZY
 * @since 2021-12-07
 */
public interface ApiBpContractorStaffMapper extends BaseMapper<ApiBpContractorStaffBean> {

    List<ApiBpContractorStaffBean> findBySnAndState(String sn, int state, Long tenentId, String orgCode);

    List<ApiBpContractorStaffBean> findByCardNumberAndState(String cardNumber, int state, Long tenentId, String orgCode);

    List<ApiUserBeanDto> findContractorListForApi(List<Long> userIdList,List<String> userNameList, Long tenantId, String orgCode);


}
